<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%
String contextPath = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+contextPath+"/";
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>DNA采集登记表</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
<style type="text/css">

body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EEF2FB;
}


</style>
<script type="text/javascript">
function gofun(_link) {
    window.top.frames('mainFrame').location.href=_link;

 }


  function check_add()
  {
 
  if(document.getElementById("cnameid").value=="")
  {
  alert("请输入案件名称!");
  return false;
  }
  else
  { 
    if(confirm("确认要提交吗?"))
			{
				gettime('endtime');
				  document.getElementById("divrsjc").style.display ="none";
    document.getElementById("btkaishi").disabled="false";
				return true;
			}
			else{
				return false;
			}
   
   }
  
    }
    
    
    function gettime(id)
    {

 if (!document.layers&&!document.all)
 return

 var Timer=new Date()
  var year=Timer.getFullYear()
 var month= Timer.getMonth()+1;
var  date = Timer.getDate();
  
   var hours=Timer.getHours()
 var minutes=Timer.getMinutes()
 var seconds=Timer.getSeconds()
 

 if (minutes<=9)
 minutes="0"+minutes
 if (seconds<=9)
 seconds="0"+seconds
    
   
   // alert(year+"-"+month+"-"+date+" "+hours+":"+minutes+":"+seconds);
    document.getElementById(id).value=year+"-"+month+"-"+date+" "+hours+":"+minutes+":"+seconds;
    document.getElementById("divrsjc").style.display ="block";
    document.getElementById("btkaishi").disabled="true";
    }
</script>
<link href="<%=contextPath%>/img/skin/skin.css" rel="stylesheet" type="text/css" />
		<link href="<%=contextPath%>/css/sic.css" rel="stylesheet" type="text/css" />
 
  </head>
  
  <body>
   
       
    
<table width="100%" height="100%" border="0" cellpadding="0" cellspacing="0" class="table_boder" cellSpacing="0" cellPadding="0" width="100%" >
  <tr>
    <td width="17" valign="top" background="<%=contextPath%>/img/skin/mail_leftbg.gif"><img src="<%=contextPath%>/img/skin/left-top-right.gif" width="17" height="29" /></td>
    <td valign="top" background="<%=contextPath%>/img/skin/content-bg.gif"><table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
      <tr>
      
        <td height="31" width="85">
          <a style="cursor:hand;" onclick="gofun('/police/dnamsg.jsp')"> 
               <div class="titlebt">DNA采集
</div> </a>
        </td>
            <td height="31" width="85">
               <a style="cursor:hand;" onclick="gofun('/police/footmsg.jsp')"> 
       <div class="mytitlebt">足迹采集</div>
       </a>
        </td>


         <td height="20" align="right">&nbsp;</td>
      </tr>
    </table></td>
    <td width="16" valign="top" background="<%=contextPath%>/img/skin/mail_rightbg.gif"><img src="<%=contextPath%>/img/skin/nav-right-bg.gif" width="16" height="29" /></td>
  </tr>
  <tr>
    <td valign="middle" background="<%=contextPath%>/img/skin/mail_leftbg.gif">&nbsp;</td>
    <td valign="top" bgcolor="#F7F8F9">
		<table width="100%" height="550" border="0" cellpadding="0" cellspacing="0" id="mybgcolor">
		<tr><td align="center"><h1>DNA采集登记表</h2></td></tr>
	<tr><td valign="top" align="center">
    <form action="<%=basePath %>/dnaMsg.do?oper=submit" method="post" onsubmit="return check_add()">
     <table> <tr><td><input type="button" id="btkaishi" value="开始" onclick="gettime('begintime')"></td></tr></table>
 <div id="divrsjc" style="display:none">
  
      <table width="80%" border="0"  id=Table5 class="table_boder">
      <tr>
      <td  align="right" >备案编号：</td><td><input type="text" readonly="readonly" name="dnaMsgEntity.caseID" value="<%=session.getAttribute("caseID") %>"> </td>
      <td  align="right">案件名称：</td><td><input type="text"id="cnameid" name="dnaMsgEntity.caseName"> </td>
      </tr>
      <tr>
      <td align="right">案件类型：</td>
      <td><input type="text" name="dnaMsgEntity.caseType"> </td>
      <td  align="right">日期：</td>
      <td><input type="text" name="dnaMsgEntity.docDate"> </td>
      </tr>
       <tr>
      <td align="right">办案机构：</td><td><input type="text" name="dnaMsgEntity.sectionName"></td>
      <td align="right">姓名：</td><td><input type="text" name="dnaMsgEntity.becheckedName"> </td>
      </tr>
        <tr>
      <td align="right">年龄：</td><td><input type="text" name="dnaMsgEntity.age"></td>
      <td align="right">性别：</td><td><input type="text" name="dnaMsgEntity.sex"> </td>
      </tr>
       <tr>
      <td align="right">身份证号：</td><td><input type="text" name="dnaMsgEntity.idCardNum"></td>
      <td align="right">居住地址：</td><td><input type="text" name="dnaMsgEntity.liveAddress"> </td>
      </tr>
        <tr>
      <td align="right">联系电话：</td><td><input type="text" name="dnaMsgEntity.telNumber"></td>
      <td align="right">采集事由：</td><td><input type="text" name="dnaMsgEntity.collectReason"> </td>
      </tr>
        <tr>
      <td align="right">采集地点：</td><td><input type="text" name="dnaMsgEntity.collectAddress"></td>
     <td align="right">采集时间：</td><td><input type="text" name="dnaMsgEntity.collectTime"></td>
      </tr>
        <tr>
      <td align="right">采集人：</td><td><input type="text" name="dnaMsgEntity.collectMan"></td>
       <td align="right">DNA卡号：</td><td><input type="text" name="dnaMsgEntity.dnaCarNum"> </td>
     
      </tr>
      <tr>
       <td align="right">备注：</td><td colspan="3"><input type="text" name="dnaMsgEntity.remarks"></td>
      </tr>
             <tr>
      <td  align="right" >开始时间：</td><td colspan="3"><input type="text" id="begintime" name="dnaMsgEntity.beginTime" ></td>
      
      </tr>
            <tr>
      <td  align="right" >结束时间：</td><td colspan="3"><input type="text" id="endtime" name="dnaMsgEntity.endTime" ></td>
      
      </tr>
        <tr>
      <td colspan="4" align="center">
      <input type="submit" value="提交"> 
      &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
      <input type="button" name="cancel" value="重置"></td>
      
      </tr>
      </table>
      </div>
    </form>
    
    


		</td></tr></table>
	</td>
    <td background="<%=contextPath%>/img/skin/mail_rightbg.gif">&nbsp;</td>
  </tr>
  <tr>
    <td valign="bottom" background="<%=contextPath%>/img/skin/mail_leftbg.gif"><img src="<%=contextPath%>/img/skin/buttom_left2.gif" width="17" height="17" /></td>
    <td background="<%=contextPath%>/img/skin/buttom_bgs.gif"><img src="<%=contextPath%>/img/skin/buttom_bgs.gif" width="17" height="17"></td>
    <td valign="bottom" background="<%=contextPath%>/img/skin/mail_rightbg.gif"><img src="<%=contextPath%>/img/skin/buttom_right2.gif" width="16" height="17" /></td>
  </tr>
</table>
  </body>
</html>
